-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
Replace appender in stata #62621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Replace appender in stata #62621
Conversation
size = self._chunksize | ||
return self.read(nrows=size) | ||
|
||
@Appender(_read_method_doc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can _read_method_doc
(and any associated variables) be removed after this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Matthew, yes the _read_method_doc
can be removed. Should I remove it in this PR?
|
||
|
||
@set_module("pandas") | ||
@Appender(_read_stata_doc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can _read_stata_doc
(and any associated variables) be removed after this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Matthew, yes the _read_stata_doc
and _iterator_params
can be removed. Should I remove it in this PR?
Hi Matthew, thanks for reviewing my PR! You’re right—some of those strings can be removed. I initially kept them because I hadn’t seen other PRs deleting them, and the original issue comments mentioned a broader cleanup effort after all decorators were removed. But I’m happy to remove them as part of this PR if that’s preferred. I had a couple of questions I was hoping you could answer:
|
Yup go ahead and perform those cleanups in this PR. You can address the |
@Appender
,@Substitution
,@doc
with inlined docstrings #62437 (Replace xxxx with the GitHub issue number)doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.Removed @appender on the following functions:
pandas.io.stata.StataReader.read
pandas.io.stata.read_stata